import com.googlecode.javacv.cpp.opencv_core.IplImage;
import static com.googlecode.javacv.cpp.opencv_core.*;

import static opencvtest.OpenCVUtils.*;

/**
 * Created with IntelliJ IDEA.
 * User: joey
 * Date: 14/3/14
 * Time: 下午10:53
 * To change this template use File | Settings | File Templates.
 */
public class JavaCvColorTest {

    public static void main(String[] args) {
        IplImage image = IplImage.create(new CvSize(8, 8), IPL_DEPTH_8U, 3);

        CvMat mat = image.asCvMat();
        int l = mat.cols() * mat.rows() * mat.channels();

        for (int i = 0; i< l; i++){
            mat.put(i, 76);
        }

        show(image, "image");
    }

}
